-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Browsing sidebar: Add content menu items preview #29225
Conversation
Size Change: +935 B (0%) Total Size: 1.38 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great and test well! No Qs after a little digging, and I don't really have any ideas for improvement.
Its cool to see that rendering a preview of content is as simple as rendering a template in the right context. 😁
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will add my ✅ as well, this works as expected for me, and brings parity between the content and template previews that are generated from the sidebar.
A couple of related issues (which I think should be addressed separately from this PR, as they affect both kinds of previews from the sidebar):
First, preview performance can be quite slow when there are many posts contained in it (such as with a category archive)
Second, it looks like all the rendering and network requests are being done for smaller screens, even when the preview doesn't display
Fixes #29164
Description
Add previews for content menu items.
How has this been tested?
Screenshots
Types of changes
New feature (non-breaking change which adds functionality)
Checklist: